<?php

class Core_Form_Admin_I18n_Translation extends Form
{
	function init()
	{
		$this -> addChild('text', 'phrase', array(
			'label' => 'Phrase',
			'required' => 1,
			'rules' => array('required')
		));

		$this -> addChild('select', 'lang', array(
			'label' => 'language',
			'desc' => 'Translate to language.',
			'multiOptions' => I18n::getAllLanguages(),
		));

		$this -> addChild('textarea', 'translate_text', array(
			'label' => 'Translate text',
			'required' => 1,
			'rules' => array('required')
		));

		$this -> addChild('textarea', 'default_text', array(
			'label' => 'Default text',
			'required' => 1,
			'rules' => array('required')
		));

		$this -> addChild('group', 'buttons');
		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
